﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
<script>
    function ck(obj) {
        if (obj.value.length > 0) {
            var af = "jpg,gif,png,zip,rar,txt,htm";
            if (eval("with(obj.value)if(!/" + af.split(",").join("|") + "/ig.test(substring(lastIndexOf('.')+1,length)))1;")) 
            { alert("允许上传的文件类型:\n" + af); obj.createTextRange().execCommand('delete') };
        } 
    }
</script>
<form>
<input type=file name=path onpropertychange="ck(this)"/></form>
 <a href="../FilesDownLoad.aspx"></a>
</body>
</html>
